home *** CD-ROM | disk | FTP | other *** search
/ Jurassic Jigsaws / JURASSIC.BIN / mmvdemo.dir / 00382_Script_button script < prev    next >
Text File  |  1996-09-24  |  717b  |  26 lines

  1. on mouseDown
  2.   puppetsound "click"
  3.   updatestage
  4.   put the clickon into whichsprite
  5.   put the membernum of sprite whichsprite into whichmember
  6.   put the name of member whichmember into namestring
  7.   put namestring & "down" into downbutton
  8.   repeat while the stilldown
  9.     if rollover (whichsprite) then 
  10.       set the membernum of sprite whichsprite = member downbutton
  11.       updatestage
  12.     else
  13.       set the membernum of sprite whichsprite = whichmember
  14.       updatestage
  15.     end if
  16.   end repeat
  17.   set the membernum of sprite whichsprite = member whichmember
  18.   updatestage
  19.   
  20.   if rollover(the clickon) then 
  21.     puppetsound "click"
  22.     updatestage
  23.     dobutton (namestring)
  24.   end if
  25.   
  26. end